#include<stdio.h>
int main()
{
  int n=1,t=1;
  int d;
  printf("what is the value of d?\n");
  scanf("%d",&d);
  while (1)
  {
      t=n*t;
      if (n>=d)
     break;
     n++;
      
  }
  printf("t is %d",t);
  

}